from django.conf.urls import url
from django.urls import path
from . import views
from django.views import static
from django.conf import settings
app_name = 'home'
urlpatterns = [
    path('', views.index, name='index'),
    path('history/', views.home_history, name='home_history'),
    path('star/', views.home_star, name='home_star'),
    path('beauty/', views.home_beauty, name='home_beauty'),
    path('custom/', views.home_custom, name='home_custom'),
    path('building/', views.home_building, name='home_building'),
    path('logout/', views.logout, name='logout'),
    path('register/', views.register, name='register'),
    path('register_success/', views.register_success, name='register_success'),
    path('user_central/',views.user_central,name='user_central'),
    url(r'^static/(?P<path>.*)$', static.serve, {'document_root': settings.STATIC_ROOT}, name='media'),
    url(r'^images/(?P<path>.*)$', static.serve, {'document_root': settings.IMAGES_ROOT}, name='media'),
]
